package tjx.Action;

import com.opensymphony.xwork2.ActionSupport;
import tjx.struts.beans.chengji;

import java.util.ArrayList;
import java.util.List;

public class GradeAction extends ActionSupport{
    List<chengji> grade=new ArrayList<chengji>();
    public String load()
    {
        chengji cj1=new chengji( "java",90 );
        chengji cj2=new chengji( "Php",80 );
        grade.add(cj1);
        grade.add(cj2);
        return SUCCESS;
    }

    public List<chengji> getGradeData() {
        return grade;
    }

    public void setGradeData(List<chengji> gradeData) {
        this.grade = grade;
    }

}
